package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2017/5/22.
 */
@Entity
@Table(name = "sys_message_template")
@DynamicInsert
@DynamicUpdate
public class SysMessageTemplate extends IDEntityMall {

    /**
     * 消息唯一标识
     */
    private String msgName;

    /**
     * 消息内容
     */
    @Column(columnDefinition = "varchar(100) comment '消息内容'")
    private String content;

    /**
     * 目的地：前端url
     */
    @Column(columnDefinition = "varchar(50) comment '前端url'")
    private String frontendUrl;

    /**
     * 消息触发的：后端url
     */
    @Column(columnDefinition = "varchar(255) comment '后端url'")
    private String backendUrl;


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getFrontendUrl() {
        return frontendUrl;
    }

    public void setFrontendUrl(String frontendUrl) {
        this.frontendUrl = frontendUrl;
    }

    public String getBackendUrl() {
        return backendUrl;
    }

    public void setBackendUrl(String backendUrl) {
        this.backendUrl = backendUrl;
    }

    public String getMsgName() {
        return msgName;
    }

    public void setMsgName(String msgName) {
        this.msgName = msgName;
    }

    @Override
    public String toString() {
        return "SysMessageTemplate{" +
                "msgName='" + msgName + '\'' +
                ", content='" + content + '\'' +
                ", id=" + id +
                ", frontendUrl='" + frontendUrl + '\'' +
                ", dateCreated=" + dateCreated +
                ", backendUrl='" + backendUrl + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
